x86emul/test: generate non-pie executable for 64bit builds
authorWei Liu <wei.liu2@citrix.com>
Mon, 25 Sep 2017 10:46:36 +0000 (11:46 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 25 Sep 2017 14:29:04 +0000 (15:29 +0100)
commite90188b9817e6064584e8ad22b52e01f2e5deb35
tree3bd669b310d6571e5fd051aae5642f0209bbb14b
parent5fc07747d6c4a31cc800af4939d11fef6b62da46
x86emul/test: generate non-pie executable for 64bit builds

PIE may (and commonly will) result in the binary being loaded above
the 4Gb boundary, which can't work with at least the VZEROUPPER compat
mode test.

Add -fno-PIE and -no-pie when appropriate so that gcc won't generate a
PIE executable.

Reported-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/tests/x86_emulator/Makefile